package  service.inter;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import  entity.Account;

public interface IAccountService {
	public Account save(Account account);
	
	public boolean delete(String rowid);
	
	public boolean update(Account account);
	
	public Account queryById(String rowid);
	
	public Account queryByAccount(String account);
	
	public boolean verifyAccount(Account accountInDB,Account accountAccepted);
	
	public Map login(Account account,
				HttpServletRequest request,HttpServletResponse response);
	
	public Map register(Account account,
			HttpServletRequest request,HttpServletResponse response);
	
	public Map updateAccount(Account account,
			HttpServletRequest request,HttpServletResponse response);
	
	public Map getList(HttpServletRequest request);
}
